package com.anyou.mall.use.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.EqualsAndHashCode;
import com.anyou.common.annotation.Excel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import com.anyou.common.core.domain.BaseEntity;

/**
 * 用户消息对象 use_user_system_notice
 *
 * @author gaochaohao
 * @date 2022-04-22
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper=false)
@ApiModel(value = "用户消息")
@TableName(value = "use_user_system_notice")
public class UserSystemNotice extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 通知编号 */
    @TableId(type = IdType.AUTO)
    @ApiModelProperty("通知编号")
    private Long systemNoticeId;

    /** 内容 */
    @ApiModelProperty("内容（平台公告时存标题）")
    @Excel(name = "内容")
    private String content;


    @ApiModelProperty("跳转类型（1支付订单,2售后订单，3-提现申请，4-平台公告）")
    @Excel(name = "跳转类型", readConverterExp = "1=支付订单,2售后订单，3-提现申请，4-平台公告")
    private String skipType;


    @ApiModelProperty("通知类型：1-支付订单，2-售后订单，3-系统消息）")
    private Integer noticeType;


    @ApiModelProperty("系统用户id")
    private Long sysUserId;

    @ApiModelProperty("跳转的资源id")
    private Long sourceId;

    @ApiModelProperty("是否已读：0-未读，1-已读")
    private Integer isRead;

    @ApiModelProperty("平台公告内容")
    private String noticeContent;

}
